package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.NoticeDO;
import com.pipi.sso.dao.query.NoticeQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Notice.
 */
public interface NoticeManager {
    /**
     * query count by query condition.
     */
    int countByQuery(NoticeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(NoticeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(NoticeDO record);

    /**
     * insert selective.
     */
    long insertSelective(NoticeDO record);

    /**
     * select by query condition.
     */
    List<NoticeDO> selectByQuery(NoticeQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<NoticeDO> selectByQueryWithPage(NoticeQuery query);

    /**
     * select by primary key.
     */
    NoticeDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( NoticeDO record,  NoticeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(NoticeDO record, NoticeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(NoticeDO record);
}